package com.nf.action;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class Test999 {


    @RequestMapping("/IOIOIO")
    public String a(String username){
        System.out.println("客户端传来的参数："+username);
        return "hello";//返回的是JSP包中的hello.jsp
    }

    @RequestMapping("/OIOIOIOI")
    public String aA(Model model, String name){
        System.out.println("输出的是："+name);//在网页页面后面输入（？name=xxx）即可
        String pp =name +"先生";//(添加model)
        model.addAttribute("pp8",pp);
        return "LOVE";//返回的是JSP包中的LOVE.jsp
    }

}
